﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 盘点明细
    /// </summary>
    [Table("T_StocktakingOrderDetail")]
    public class StocktakingOrderDetail:BaseEntity
    {
        public long? OrderDetailId { get; set; }
        /// <summary>
        /// 盘点单号
        /// </summary>
        [MaxLength(30)]
        public string OrderSn { get; set; }
        /// <summary>
        /// 仓位Id
        /// </summary>
        public long? CellId { get; set; }
        /// <summary>
        /// 仓位编码
        /// </summary>
        [MaxLength(30)]
        public string CellCode { get; set; }

        /// <summary>
        /// 货位名称
        /// </summary>
        [MaxLength(30)]
        public string LocationName { get; set; }

        public int? CellDepthIndex { get; set; }
        /// <summary>
        /// 垛条码
        /// </summary>
        [MaxLength(30)]
        public string PalletBarcode { get; set; }
        /// <summary>
        /// 预期站台
        /// </summary>
        [MaxLength(30)]
        public string ExpectedStationIds { get; set; }
        /// <summary>
        /// 0：待盘点，1已盘点
        /// 状态：0-创建、1-进行中、2-完成、3-已取消
        /// </summary>
        public int Status { get; set; }
        /// <summary>
      
        /// <summary>
        /// 物料Id
        /// </summary>
        public long? MaterialId { get; set; }
        /// <summary>
        /// 物料号
        /// </summary>
        [MaxLength(30)]
        public string MaterialCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        [MaxLength(30)]
        public string MaterialName { get; set; }
        /// <summary>
        /// 是否有货号详情
        /// </summary>
        public bool? HasSkuDetail { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        [Column(TypeName = "decimal(18,2)")]
        public decimal? Qty { get; set; }
        /// <summary>
        /// 质量状态：0-待检；1-合格；2-不合格；
        /// </summary>
        public int? QualityState { get; set; }
        /// <summary>
        /// 详细批次
        /// </summary>
        [MaxLength(30)]
        public string BatchNo { get; set; }

        /// <summary>
        /// 有效时间
        /// </summary>
        public DateTime? ExpireDate { get; set; }
        /// <summary>
        /// 生产日期
        /// </summary>
        public DateTime? ProductDate { get; set; }
        /// <summary>
        /// 供应商Id
        /// </summary>
        public long? SupplierId { get; set; }
        /// <summary>
        /// 供应商名称
        /// </summary>
        [MaxLength(30)]
        public string SupplierName { get; set; }
        /// <summary>
        /// 物料类型Id
        /// </summary>
        public long? MaterialTypeId { get; set; }
        /// <summary>
        /// 物料类型
        /// </summary>
        [MaxLength(30)]
        public string MaterialTypeName { get; set; }
        /// <summary>
        /// 当前步骤：0-未执行；1-出进行中；2-出完成；3-入进行中；4-入完成
        /// </summary>
        public int? Step { get; set; }
        /// <summary>
        /// 是否需要移位
        /// </summary>
        public bool? IsNeedMove { get; set; }
        /// <summary>
        /// 库存id
        /// </summary>
        public long? InventoryId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public long? WarehouseId { get; set; }
    }
}
